Add sorting of keys to generate stable output.
Add a test of the actual output
Add checking for a single type in an array.
Move flags up
Refactor
Add flag to export field names. Fixes #4