Replaced lots of M3DVectors with std::arrays