try detection of gobject type at runtime
clean up imports, exports and double type declarations