Support wrapping of returned objects (needed by <https://github.com/brettz9/asyouwish/>)