code generation for ArrayParams