avoid dropping of unused dimensions in dataset reductions.