First thing that would pop into my head are.... frogs!
Strong critter attacks (extra dmg vs. undead), reduced dmg taken from undead attacks + healing abilities.
Just thinking, I also made some good experiences with rabbits to fight off undeads. They are generally quite fast, hit undeads for extra dmg and with dodge + burrow abilities they can avoid a lot of dmg.
Ofc, this is a very general approach to counter undead pets like the 2 you mentioned. I'm sure there are more combinations of pets to counter these.