Add a convenience method for checking if an AST pointer is set.
Correctly handle the case where an optional ASTPtr is in the first ASTContainer to be constructed.
Add a special parser expression for debugging grammars.