This isn't doing what you think it is. The `$renderEmbeddedEntities` flag is used to determine whether an entity that is embedded (by itself, or as part of a collection) should be rendered in its entirety, or instead just as a collection of `_links`. What you're doing here essentially breaks that.

The original idea, as you reference in the chat in #33, is to instead alter `createEntity()` and `createCollection()` to not call `createEntityFromMetadata()` and `createCollectionFromMetadata()`, respectively. This will ensure that the entity and/or collection are intact before they get to the HalJsonRenderer, ensuring that the events get the originals, and not the array serializations.