improvements to Range
fix and optimize span() and segment() on Range