Serialization support for geometric types