MetadataField class made serializable