Don't write to generated files if no elements requiring code generation are found
no file output w/o stuff to encode
Merge pull request #16 from philhofer/exit-on-no-structs

I'm going to have to un-clobber something in a second...
un-fuck
generate with -test flag