refactor FastTMXTiledMap::tilesetForLayer to a more elegant implementation