pack-objects: use bitmaps when packing objects