Fixing an issue with distance calculations.
Adding bounds to circle shape
Adding mapapi.shape.isShape, returns boolean indicating whether argument
is a shape.
fixing negative value check
Implementing mapapi.polyregion to assist in irregular region shapes (i.e. maps for world that do not have square regions)
--amend
Merge branch 'master' into ui-contextmenu

Conflicts:
	utils/minify.sh