Implement struct support in copy_to_pyobject arrfunc