Do we still need the !range.isSingleKey() condition in the if below that does the nextKey?
Can we simplify the above statement for setting incrementKey and incrementAtEnd?
If incrementKey above, do we always not incrementAtEnd? Can we get into situations where we increment the key in the loop and then immediately at the end of the loop too (essentially incrementing twice)?