normalize an object/array where some values might be boxed within a promise