Make Component work with new version of the serialization library

This also fixes https://github.com/wmde/WikibaseDataModelSerialization/issues/34,
compatibility with the latest DataModel and several other issues I found.
Merge pull request #46 from wmde/newserialization

Make Component work with new version of the serialization library