In, DateHistogramAggregationDescriptor, the date format is being set to "yyyy-MM-dd" here. This creates confusion (at least is really did for me), because date strings that are input into extended_bounds require the same format. This means that intervals of seconds, minutes, etc. are off limits unless you change the format back to ISO format (months, years, etc. work fine with ISO format).
It would probably be best to just not serialize the format by default unless the value is actually set by the user.