[docs] fixed errors in aggs docs
- error in nested aggs example
- error in terms aggs example