Replace btree scope implementation with a hash table
Build decl hash table in TCL shell to speed lookups