Remove code generation testing code

The code being tested by this testing code is fairly robust by now,
and this doubles compile times. It also needs fixing any time there
is any change in the internal API.

The bindings are at a stage where the generated code should always
compile, so errors in code generation itself are easily caught.
Free caught GErrors
Make enums derive Show
Test exception handling