raise an IndexError instead of a warning when slicing with an integer
sequence produces a different answer than before (when there are
duplicate indices in the sequence or the sequence is not sorted).