SortedRange.length should support inner ranges with ulong as length

`assumeSorted(iota(cast(ulong)2))` does not compile in 32 bit.