optimize `length(::OrdinalRange)` for large bit-ints (#58864)
Split from #58793, this coalesces nearly all the branches in `length`,
allowing it to inline and generally perform much better while retaining
the exact same functionality.
---------
Co-authored-by: N5N3 <2642243996@qq.com>