[2.47] Correction of commit template serialization problem

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