fixed #1 - fixed bug in index scripting

Indexes from different tables with the same name were combined
into a single index with duplicate columns.