Fixed diff generator when same indices or fkeys were renamed

Fixed diff generator when two tables have several indices or foreign
keys with
same DDL and several of them were renamed.