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.
Doesn't this change behavior when (to-from) was even and now is one less and odd (rounding down)?