fixed issue #32: added extra syncing after binary or unary operations if one of the operands in non-primitive.