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

Done. Although the special case of is_nan remains, as it compares inequal to everything, including itself.