AddOnFunctionStyleProvider: fixed issue where add on function passed to constructor was ignored (closes #1009)