Fixing some boogs in the key-value filesystem.

Still doesn't work, but getting closer!