added region size checks for tilemaps

this fixes problem from:
http://forum.haxeflixel.com/help/problem-with-tiled-map-classes-in-flash-target