C++ify the subtrees list during AST building