fix TileObject.name being overwritten if it's tile gid has properties.

Iterating over TiledMap.getObjects() shows that objects have their "name" property set to "TileObject" instead of the given name in the map editor. This happens only if the tile's GID has a tileset property set.

This causes issues if games rely on an object's name. 

Unit tests run OK after change.