Updated lookup() from SymbolTableStack.