Add zlist_freefn

Add a free function to zlist in a similar vain to the one found in zhash