Copy vm.*.type value so that VMBase::Free can work correctly
Fix filesystem handle transfer protocol