Arrow functions can't be entrly skipped while traversing because this references inside of them needs to be transformed, so I added a check which prevents return statements inside arrow functions from being saved for the transformation. Fixes #5817 (regression)