codegen: fix unbox_vec with bitcast; program segfaults