add isinf and isnan for complex

I would almost want isinf and isnan to be mutually exclusive, but these
definitions seem pretty standard.