refactor tilemap xml format index count.

change tilemap xml format index storage from layer->_tiles[tilesAmount - 1] to _xmlTileIndex.