Store gtype of generated classes in a constant
Move get_gtype definition to TypeBase
Push .get_gtype down into new RegisteredTypeBase module