SERVER-139552Needs Scheduling
Limits testing for type inference
We already have benchmarks which test some worst-case scenarios. We need to review them and see if there's any missing cases. We should identify cases where our algorithms or data storage has quadratic or higher space or time complexity. Then we should determine reasonable limits to apply inside of our type inference and type representation logic. It is always valid to not perform type inference and bail, so the goal is to choose limits that are low enough such that type inference time is