#69 setGid doesn't work with "unused" tiles.
Merge branch 'fix_tiled'