Add EdgeTerminator to Kryo serialization.