perf: bound expression comparisons in the type inference cache

This PR fixes quadratic elaboration behavior for large string-literal equalities by limiting structural expression comparisons in the type inference cache.
10 files changed