builtin/pack-objects: introduce obj_is_packed()