Add `anyarray_enumerate()` function

Add `anyarray_enumerate()` which behaves similarly to Python's `enumerate()`. It unnests the array along with the indices of each element.