Serialize functions to be able to setup options of type function
Merge branch 'feature/allow-function-serialization'