generic.h: major performance boost (like 4x) to soilwat/stepwat

new (MUCH faster) isequal(), isless2(), ismore(), and iszero() macros
which should give a