I had my companion as horse archer, but as party leader he is infantryman. This leads to the situation, when his party is in my army, he goes to the shield wall. More of it, if I move the formation, he is galloping to the destination pretty fast and proudly stays there alone (or with 2-3 other jerks like him) under rain of arrows. Not sure was it from the beginning of his assignment or switched later.