Retrieve the state for the given Atom, creating or rebuilding it when required.
A get<A>(Atom<A> atom) => _ensureNode(atom).value as A;