More parser work...

Added rule stringifier, and better AST handling.