Parameter issue with range for algorithms

@jdiefenbaugh : When selecting the range for a parameter in an algorithm, the minimum value can be bigger than the maximum value. Looks like a small check between these two min-max is missing here...

This needs to be fixed.

Edited by Flavio TARSETTI