fn add_field_ids_recursive(field: &Field, next_id: &mut i32) -> Field
Recursively add field IDs to a field and all its nested children.