Replace more occurances of std::vector with an array.