Dynamic Jahn-Teller effect in crystals doped with 3d ions