Adding better indexing support

REF: https://github.com/arrayfire/arrayfire_fortran/issues/1