Fix for subobjects for RDF stores

#389 contains the test; after it has been merged you should rebase and remove the `skipped mark` from the test