[Git][ghc/ghc][master] Improve how we detect user type errors in types