Implement AstBuilder.CompileToAstNodes()

This function is ready for being used in Nodes2Code and building custom nodes.