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

Yes, we use `ddt` for this, generally.