Use undefinedp() rather than zero_type() to test for UNDEFINED.

This should play more nicely with the recent Pikes, where UNDEFINEDP is given
special treatment. Should improve performnance at no cost.