[2.47] Correction of commit template serialization problem

...using Json Serialization
Data are also migrated!

Correction of #2039

PS : Need cleaning if you want to merge it..