include/packing.i:315:3: error: 'pv.type' may be used uninitialized in this function