pack-objects: improve returned information from write_one()