keyOfNid method
Returns the key associated with nid, or null if the nid has been
released. O(1). Consumers that cache nid-indexed state can use this to
detect stale entries after node removal.
Implementation
TKey? keyOfNid(int nid) => _nids.keyOf(nid);