I'm using json_each to pass dynamic values in absence of sqlc.slice and have query part like following which doesn't transform properly:
-- query.sql AND ( @accountTypes IS NULL OR at.type IN ( SELECT value FROM json_each(@accountTypes) ) ) -- query_sql.ts AND ( ?2 IS NULL OR at.type IN ( SELECT value FROM json_each(@accountTypes) ) )