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

Add tests for expected errors? e.g., if you supply an index that is unsorted or has duplicates?