More pathfinding bugfixes. It's amazing how many pathfinding solutions can be optimal while still being completely wrong.