Fix grouping of statements when laoding data from dumps

This fixes issue #78.
Merge pull request #79 from Wikidata/issue-#78

Fix grouping of statements when laoding data from dumps
Merge branch 'master' of https://github.com/Wikidata/Wikidata-Toolkit into create-parser-of-constraints