Fix wasm_val_copy
for null funcref/externref
#2041
Merged
wasm_val_copy
for null funcref/externref
#2041