Make it possible to persist EmbedMany with discriminatormap

This commit fixes #715