do reporting at end; this allows to check if type refers to a TypeDef or an actual class.