It should have been included in the pathfinding. I lost at least a hundred troops because the decided to run around a fence into the enemy's army instead of just hopping over it.
If not in regular pathfinding itself, it should have been at least in the retreat pathfinding.
