Functions for converting complex values between OCaml and C.