getindex methods and passing tests for Int, Date, arrays of them and ranges of them