serialization & deserialization of Field and for basic types.