generator: omit '~' in signatures

Signed-off-by: David Scott <dave.scott@citrix.com>
generator: escape OCaml keywords

Signed-off-by: David Scott <dave.scott@citrix.com>