generate definitions instead of header bool in serialize string
newlines not generated between consecutive:
- includes
- typedefs
- constants
in python generated files
optional fields tested in cpp output