The ArangoDB AQL AST and to_source implementation