SERVER-137643Open
Support FieldPath and FieldRef paths in the type system
FieldRef is used for matchable paths. A $match can be on an field with an empty name such as \{$match: {"": 1}}. FieldPath is the paths that a FieldPathExpression can reference. The path "$" is not valid. It is more restrictive and used in the pipeline module. canPathBeArray support both, since ExpressionContext is used for all queries. One overload currently converts FieldRef to FieldPath and calls the other with it. The schema type methods should also support both. The canPathBeArray