Min-max improvements

Some followup improvements to #1320 which improves the UI related to the min-max feature.

Funded by Sourcepole QGIS Enterprise.