Use StatementGroups in ItemDocuments

This replaces the earlier use of lists of Statements. The grouping
reflects the grouping of properties in the Wikibase UI and API, but is
not found in the current dumps.