montonicity constraints did not use standardised (g(x)/g(0) detection
functions, so if g(x)>1 monotonicity constraints were voilated. Now
standardised detection functions are used.

Updated tests.

Thanks to Len Thomas for noticing this bug.