Update PrimitiveFieldType.java

add symmetric encoding transformation (serializer/deserializer)