Played a bit more and it seems all the polymorph spells just randomly stop working.
One thing that triggers the bug is simply picking up something which is automatically added to the hotkeys. Apparently the triggered skill (flight,bullrush etc) is assigned to a specific key, and is overwritten if anything else gets equipped there.
However, poly skills that do not give a new ability also randomly stop working so there is probably more than one bug.