More fixes and "tiles" is an uint32 (GID)
more cleanup in TMX code