So, some GREAT news about 1.3.1: it would seem that the collision bug with mobs and walls has been fixed (or greatly reduced). I have a farm with three pens of one-high fence, and after several in-game days, not a single animal has escaped or died. Woohoo!