allow empty sets in min/max/sum

useful in many cases
Merge branch 'feature-empset' into develop