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

This also fixes some issues in ChopDataTest
Merge branch 'bugfix/8085_integration_boundaries' into develop