Fix split-into-monotonics.

The incorrect assumption was that all monotonics sequences should be of
the same type (increasing/decreasing).