Serialization of Point type