proper fix for array params (now works with both positional and named params), tests