Map OCaml arrays onto C-like structs