Hhh 8683

* PREVIEW *
not to be merged yet, still discussing the approach.

This includes two forms of optimisation of memory impact of EntityEntry, and also makes it possible for OGM to attach additional state to it.