fn check<T: Clone + Debug + PartialEq>(code: &str, input_vec: &Vec<i32>, expect: T) {
    let ref mut conf = default_conf();
    let ref input_data = WeldVec::from(input_vec);
    let ret_value = compile_and_run(code, conf, input_data);
    let data = ret_value.data() as *const T;
    let result = unsafe { (*data).clone() };
    assert_eq!(expect, result);
}
A helper for serialization tests.

Each Weld function should take a vec[i32] and return `T`.
weld/tests/serialize_tests.rs