fix to ensure any objects marshaled by ref are unwrapped