SERVER-116146Backlog
Adopt CRTP on SDK AstNode and ParseNode
To avoid having to implement an identical `clone()` on every test implementation of AstNode and ParseNode, we should add a curiously-recursive templating pattern (CRTP) to the SDK for these classes. SERVER-115503 has an example of how to do this for `LiteParsedDocumentSource`. [https://github.com/10gen/mongo/pull/45657#discussion_r2658387022]