proper fix for array params (now works with both positional and named params), tests
Merge branch 'fix-functions-args' into dev