Merge pull request #82 from Wikidata/serialization-of-constraints

Cherry-pick from create-parser-of-constraints
Fix comments
Merge branch 'master' of https://github.com/Wikidata/Wikidata-Toolkit into create-parser-of-constraints