Fix unintended override of entity keys

This occurred when entity_refs were merged into the entity dict.

Signed-off-by: Byron Ruth <b@devel.io>
Add derivation provenance for new revisions

Signed-off-by: Byron Ruth <b@devel.io>