Aggregate over an array

scripted aggs are possible in kibana, right?