vector format supports std::pair for serialization
array format supports std::pair in both directions when length is 2