[DROOLS-469] fix jitting of a constraint doing a comparison when the compareTo method is declared in a super interface of the compared type
(cherry picked from commit 4a5af55b8f958f2d7b824137230a3c691844fc2a)