[DROOLS-79] fix jitting of constraints with primitive cast