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

I would just raise if the type is not integer or boolean (see below)