Do undead still count as corpses for the purposes of spells that target corpses? Lets look at a specific example, Resurrection. Now, Resurrection functions like raise dead, except that it can bring back someone who has been turned into undead (not bring back an undead). The target for raise dead is a dead corpse, so this seems to imply that undead are still corpses, because the target is not changed.
So do other spells which target corpses still work (even if they have weird effects because its meant to be a dead corpse and not an undead one)?