[GHC] #9415: Superclass cycle with ambiguous type causes loop