Set the type of the functions in Client

Workaround for ocsigen/eliom#51