sequencer: convert some functions to struct object_id