Made it possible to rewrite AST into other AST:s.