cleaning up realm logic; new UnpackOption; added Loader.prototype.{global,realm}