Add serialization for vertices with Kryo.