Int32 (de)serialization in ocaml. Code used in blog post