Use couldContainTypeVariables to short-circuit instantiateType (#36951)
Use couldContainTypeVariables to short-circuit instantiateType (#36951)

This is particularly impactful for large unions of string literals.
SaschaNaz/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,SaschaNaz/TypeScript,nojvek/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,alexeagle/TypeScript,alexeagle/TypeScript