Pickle `curried_func.__dict__` too.