Found a better way to write the max/min conditions for AMCurrentAmplifierSingle/CompositeView::refreshValues().