Dexie.Syncable bugfix

for-loop where I missed to put index in closure