callback mechanism fixes memory leaks by calling hs_free_fun_ptr in the proper casadi node's destructor, closes casadi #878 and #879