Add serialization support to multi-maps.