updates to pathlocation and graphtile for loki

`pathlocation` updates were just to make it easier for `loki` and others to make use of the object.

all of the `graphtile` updates were simply clean up items, changing `int` to `size_t`, using c++ style casts instead of c casts, using array operators on arrays instead of pointer arithmetic
made these two methods static as they pretty much are not really member methods anyway