[DROOLS-293] fix ObjectTypeNode id creation and comparison