I'd actually argue that the best and indeed only way to solve this frustrating hangover from 1.5/1.6 is to mod large stone walls out of the game completely. Granted it's not as easy and requires more modding effort, but it helps the AI.