Fixed code produced for a field that is a list of a custom type.
Indenting JSON output is no longer offered.
Removed the non-essential parts (comparisons, visitor pattern) in order
to make rewrites easier.