How's that?
Regular polymorph is worded in a way that makes it explicit that it only works on living creatures, but polymorph any object works on all creatures, living or otherwise, and on objects.
Since it works on objects, undead immunity to all [Fort] based spells that are not harmless, doesn't kick in.