Made hysteresis variant of gwseg consistent ...

... with the base gwseg behaviour.  Added test.