I entered a village from the west and ended up right beside a dog pen. When I tried to leave the village I was told my dog couldn't follow me, so I shouted for it and finally located it in the dog pen. Given that followers end up to the east of the character when entering settlements the dog should have ended up on top of the fence, and then elected to go in rather than out.
This is the first time it's happened, even though I've visited this village and another village where I likewise end up right beside a pen fence when entering from the west multiple times.
It's just an annoyance, but it would probably help if settlement generation placed pen fences with a two tile margin to the western edge rather than the current single tile.