Tilemap: Fix map wrap around
Some RGSS2/RGSS3 compile fixes