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.