[GHC] #8554: kindFunResult panic when type checking wrongly-kinded function