get rid of shadowing variables (mrbgems)

Mostly renaming, except that the definition of struct accessor methods is now done in a new function.