add serializable to PointXX and EnvelopeXX

@mraad Could you check if it works for you?