Adding index to traversed elements, flatMapping one shallower level.