Fix Range#each for Symbol elements and it simplified for String elements

Fixes #2149