Issue #16 fix: indexOfSlice applied to original sequence instead of mutated