fixed registration of field from base classes

Until now no fields from base classes were registered.
This commit fixes this issue by iteration over the base
classes and registering all field from them.
removed anonying debug info
typename.cc : Bugfix : -1 is also a valid integer

There was a bug, that negative values were not accepted as
integer constants.