find RangeLower with std::lower_bound, neat, re #8085

This also fixes some issues in ChopDataTest