bindings: implement a trial gc_sweep