Fix #771: make smoothstep(x,a,b) work if a > b