Fix non-defined bucket value when min/max values equal for one dimension
Fix does not recompute sum and sum2 of labels for each dim
Add test data