Implemented complex specialization for unary functions