Java enums - remove redundant typemaps
Correct messages displayed when running Java test-suite
Fixes for C enums used in an API and the definition of the enum has not been parsed.

For D, this fixes a segfault in SWIG.

Java, C#, D, Go now produce code that compiles, although the definition of the
enum is needed in order to use the enum properly from the target language.
Remove some useless code