Fixed memory management issue in Catalyst parser.

AST used to have a copy constructor, which would result in a pointer to
an already released ASTNode.