[GHC] #7804: Ambiguity check too eager in presence of RankNTypes and TypeFamilies