don't allow functions and global variables to have the same id
SyntaxErrors raised in Resolver instead of SymbolTable