In addition to the current rule that animals will not despawn if they can not move more than 20 blocks in any direction I wish they would add that the animal must be within 20 blocks of a fence post to prevent the issues with animals in extreme hill biomes.
Slight alteration to mob despawning.