if script fails to parse then check and fail in scritp unit test.
move op.data size check out of if because (!allow_execution && !is_condition_opcode(op.code)) can return beforehand.