improve complex tan, sinh, cosh, tanh
fixes #2889