semantic: Consult imports in lookupAsThisScope.