fn dynamic_take_next_global_id(root: &mut Value) -> i64
Returns the next global state id for domain records and advances the root counter.