[GHC] #16148: Better type inference for Constraint vs Type