Remove -Wall warnings for generated code

A bunch of small modifications in order to make the generated code (and
testGtk.hs) compile without any errors when compiled with -Wall.

Basically no functional differences otherwise.