Exposed functor syntax to SWIG, #994