add 3-way tests for map_location, like associativity. refactor.

Tried also to assert translation invariance of get_relative_dir,
but that doesn't seem to hold atm.
Merge branch 'master' of git://github.com/wesnoth/wesnoth