Add support for swh.model.model objects in the DirectWriter.
They are used by the in-memory storage, and may be used by others later.