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

I've tried to maintain consistency with numpy here, which allows for using indices that are castable to ints, like v[2.0] or v["1"].