Merge pull request #1472 from ZackerySpytz/OCaml-SWIGTYPE-typecheck

[OCaml] Add a typecheck typemap for SWIGTYPE