Adding params to functions, for DefineFunction2.
Also rendering params for DefineFunction, should fix #19