tree-walk: convert tree entry functions to object_id