[GHC] #9587: Type checking with type functions introduces many type variables, which remain ambiguous. The code no longer type checks.