negative indices in array ranges