generic NameTable.lookupScope added