[remoting] added: support for sending arbitrary functions