Fixed bug in ASTManager when dealing with names within classes