Fix Range#each to never include a value out of bounds.