In essence, I'm looking for the functionality of `xarray.core.utils.maybe_wrap_array`. I guess you are waiting for #964 to unify such functionality?