[GHC] #9607: Type checking regression between GHC 7.6 and 7.8