lazy_index converts an array into a slice if possible so for example `[2, 3, 4, 5]` will be converted to `slice(2, 6)` but `[2, 4, 5]` cannot be represented as a slice so it just passes though.