set up proper prototypes for generated AST nodes in preparation for #10
remove RegExp constructor dependency and regexp generation safety
add reasonable toJSON and toString methods to AST nodes