but I can make this work by altering my 'sql' tagged template string function, and inspect for typeof <var> array and automatically expand. I wonder if there are there other purposes for arrays other than the in-clause syntax that I should check for.
foo=any($1)
where $1 is an array instead of in ($1, $2, etc.). != any($1) is the same as 'not in'.