Buckets now do their own serialization so can be serialised outside of aggregations