move std::array serialize function to serialize_array.hpp