specialized serialize for std::array