Fix regression on ast rewriters
Merge pull request #2508 from davidegrohmann/rewriter-performance-fix

Ast rewriter performance fix