Returns the internal nid for key, or noNid if the key isn't currently registered. O(1).
key
int nidOf(TKey key) => _nids.nidOf(key);