I think we don't need to find the closest one, but the matching one? Eg. if we have:

```nested[path=p1] > nested[path=p2] > reverse_nested[path=p1] > reverse_nested```

The latter `reverse_nested` agg would have `p2` as a closest nested aggregator, while the matching one would be `p1`?