[schema sync] Update repo._type_source_cache when renaming an entity (closes #2094470)
When an entity type is renamed as part of a migration, it leaves stale
entries in repo._type_source_cache, which makes subsequent operations on
those entities fail (they look for the old entity name instead of the
new one).
TACHES
======
-- écrire objet stocke/manipule les données
-- extraire tests de chaîne de caractère
* utiliser sqlite
* écrire fonction prend chemin en argument et renvoie contenu
* extraire tests (chaîne de caractère) de spec
* utiliser yams pour schéma