context: add Context#restore (w.i.p.)

TODO: support continuation line commands.
So this test is broken.