Fixed serialization of metadata for stored documents (diskstorage).
Using correct contentType for importers.