Implemented tzj_array_next() function to iterate over arrays