Adding invarient: Cannot move a folder inside itself.

And fixing that invariant for key-value-based file systems.