[GHC] #11602: Exponential behaviour in typeKind, unifyTys etc