Make sure currentInnerIterations is always between 1 and innerIterations in InfiniteXYOrderedPixelRayIteratorIterator.