[TYPE/AST] Correct idiot pointer bug on class type