Reverted setting of function attributes before parameters

in FunctionFactory and FitPropertyBrowser because it breaks existing code. Re #7623