add getTypeClass to entity and refactor other content-stream-specific helpers to the ContentStreamEntity
fix addEntry and setEntries functions