Create lookupQualifiedName variant for overloaded lookups, fixing GHCi bugs