SI-7372 fix wrong insertion point for binary & linear search.

It should return the position the value would have if it was a part of
the sequence. Somehow even the test was wrong.