codegen: preliminary code for composite arrays