A nested `nested` aggregation falls outside of its parent `nested` aggregation bounds

Every `nested` aggs uses the non nested docs filter as parent reference. This can lead to incorrect doc counts and other metrics.

This PR sets the proper parent docs for nested `nested` aggs, which depends on which is the closest parent nested aggs.