unpack and updateOuterVtable functions for call by value result - type mismatches