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

Done. Even refactored the existing warnings a bit.