No more suicidal animals

Creatures with the MF_ANIMAL flag now show some intelligence and don't walk into sharp terrain, pits or fires.

Also MS_TINY animals no longer trigger certain traps (fixes #353).