bundle: convert to struct object_id