Work in progress (2011/04).
git clone http://www.pps.jussieu.fr/~henry/git/ocaml-ty.git/
git clone http://www.pps.jussieu.fr/~henry/git/safe_unmarshaling.git/
More information can be found in my PhD thesis (in french).