Fix usages of Eigen::array to be compatible with std::array.
There is currently a difference in their constructors - Eigen::array allows array(a, b, c) construction, but std::array requires an initializer list.
Once we move to C++17, we can drop the custom Eigen::array implementation, since std::array would work on GPU due to expanded set of constexpr functions in the standard library.