on the aveo if the coil pack goes bad, and is misfiring, then the rpm signal to the transmission is lost. and sets the p1781 code.
the p0700 is a general code that can be set from the car continuing to be driven without the rpm signal. IT does not mean there are no other problems. but with the information provided this diagnosis is accurate. it most likelt need wires and a coilpack.