Preaggregations can include medians now

Because of limitations in MongoDB, medians cannot be done with normal
aggregations, but can be included in all preaggregated data.