fix getindex with zero indexing arguments. Fix #4