Bugfixes to InMemoryDataStore
Added utility functions to convert objects to uris and uris to objects.