Add zlist_freefn method