Implement casadi_interface::GeneratedFunction copy ctor
Implement casadi_interface::GeneratedFunction
copy constructor, such that multiple copies of the same generated function, each having its own working memory, can be created. This is necessary if we want to call the same function from different threads, such that different threads use different working memory.