Correctly free memory in RHashtable binding for OCaml & Python.