SERVER-136153ClosedFixed
Unify canPathBeArray handling in the graph to use type information
We have a few divergent code paths which are used to determine if a field in question is array. The public canPathBeArray method on the graph is the most complete implementation. But internally, when building the graph, we use different more limited checks. For example, in a rename \{$set: {a: '$b.c'}}, if 'b.c' is a constant, we will not apply the walkConstant logic if 'b' has a constant value. Whereas if we query "b.c" using the public API we will. After we unify the code, the followi