Fixing array serialization (broken with move to std::vector).