added codegen for array temporaries