0ce6bac7eb
When we have some custom implementation of Comparable, it's important that we compare values exactly as 'lowBound <= a && a <= highBound'. Make sure that evaluation order and compareTo calls match for optimized and non-optimized case.