Fix crash when exiting while transformed

This makes sure we run decrease the animation count based on the hero's
currently transformed state when decontructing the Avatar class.

Also, the ability to manually untransform is now saved to the player's
save file.