Fix env-store test.

* Was not passing in env var, so of course the stored version didn't equal the env var.
Make EnvStore tests use real envs.
Use library.clone for cloning
Stop constant demo ctx cloning.

* Handle cloning from the demo runner, instead.
EnvStore now preserves refs.  Update test.