Add support for unary ufuncs with different input and output types