Update to how shared data functions work. Added (seemingly useless) FunctionWrapper class because calling the function handles themselves increased the Acrobot example runtime from 8 to 66 seconds.