[GHC] #9820: Apparently inconsistent behaviour in the presence of OverlappingInstances