[GHC] #10086: Disambiguate type variables using dictionaries