[GHC] #12526: regression in type inference with respect to type families