It would be very easy to just clear the stats/skills of the dolls when you unlearn the skill... I mean how hard can it be to just set all the stats back to level 1 for the pet when the skill is unlearned? They could also strip all it's equipment.