fix template loading issues
+ HistogramAggregation & DateHistogramAggregation