[WIP] Work in Progress: add partialvaluefunction service
because functions can't be serialized