I've pushed the fix for DerivedIdentityEmbeddedIdParentEmbeddedIdGrandparentEmbeddedIdColumnOverridesDepTest to master and 5.0.
I'm leaving this issue open for now so I can add fixes for the same reason (if any).