Adding field to_string/from_string methods that encode to JSON/YAML strings.

Fixed.