Make behavior of indexing with integer sequences and boolean arrays consistent (issue #300)

My solution actually does check duplicates, too, since the array must be increasing