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