Rename `bucketType` to `bucket_type` for consistency.
Skip serialization of sub-reductions when they are empty.