[GHC] #8705: Type inference regression with local dictionaries