codegen: different codepath for var array; not working