rename all invalid identifiers in an AST