Add test to verify runtime is isolated.
Add undo() API to revert all global changes to prototypes etc. Fix a couple of issues when loading and unloading the runtime.