[DOCS][FIX] Fix doc parsing, broken closing block
[DOCS][FIX] Fix reference check in indexed scripts/templates doc.
Aggregations: Fixed Histogram key_as_string bug

The key as string field in the response for the histogram aggregation will now only show if format is specified on the request.

Closes #6655