I've noticed that sometimes I'm lining up a ranged attack the AI suggests moving into melee to do the attack. This seems to be happening to NPCs as well. In the goblin battle at the gates of the druid camp the archer woman always runs into melee before shooting the goblins. If this was just happening to PCs I could work around it (I usually notice this before committing to the attack) but as the NPCs are also affected this is absolutely something that must be fixed.