Kernel refactor [preview]

For @ajs6f comments.
I think that's the most likely type of `RepositoryException`, although it'd be pretty weird to see it happen in reality. We've already loaded the `Node`, so it must have existed at some point, and we're in our own little `Session`, so it shouldn't be going anywhere.