Pre-process outfun argument.
preprocessOutfun(outfun)
outfun
function, lambda formula or output function object
an output function