Fix pt2to3: write correct data
Tables.autoIndex --> Tables.autoindex
Fix old autoIndex API