Fix deserialization of embedded key-value maps

Fill `relatedModel[foreignKey]` with the model name to preserve
entity relation.