added codegen for unary and binary array operations