SERVER-114234Backlog
Support collectionless aggregates in the extensions API
We should support collectionless aggregate stages in the extensions API. This will require propagating {{isIndependentOfAnyCollection}} and possibly also {{generatesOwnDataOnce}} in the stage's static properties. There are no known external use cases for this currently, but it would be helpful for internal testing so that we can create stages similar to $documents. It would also future-proof in case an external need for this type of stage arises.