Some bugfixes and improvements to the distributed data store.