SI-6736, SI-6747 optimize Range.foreach further

Now, it shows as same performance as `while`.
SI-6747 add `deprecated` to Range's internal methods

Just make sure, let's take a safer way.