The G20 has fallen for an orthodoxy that ignores history. It is not the time to be slashing spending.