Optimize AST classes, making them faster but more ugly.