There is an Undead classification (it's how they classify Creep as Undead, e.g. Wraiths / Revenants, which can be Death Coiled for health, not sure about Death Pact though).
But if the field isn't listed in "atar" (the possible targets for the spell), you can simply use a non-important field.
A user mentioned that "Ancient" would be a good classification (assuming you aren't using it for anything else). Just give all Undead units "Ancient" as a unit classification, and then make your autocast only target "Ancient" units.
I believe Holy Light/Death Coil's effect itself is hardcoded (in terms of healing/damagin living/undead).