get rid of shadowing variables

Mostly by renaming the shadowing variable.
If a shadowing variable was deleted, the shadowed one can be used instead.

----------------

This is only for `src/*`. I'll create another PR for mrbgems.