BUG: pickling of link_funcs.