issue #2050: fix tilemap firstgid bug

change unsigned int to int.
fix bug.