Fix json generator.

* Added JsonGeneratorOptions (beautify, indent_string, etc.)
* Pass JsonGeneratorOptions to Encode
* check feof() before reading, not afterward.
* Rename test_types_gen.gold -> test_types_gen_empty.gold
Remove Test from beginning of test name
WIP