pass reference on GlobalObject in Registry global callback
See individual commits and #7 (closed) for details.
The example from #7 (closed) can now be implemented using:
let global: Rc<RefCell<Option<GlobalObject<_>>>> = Rc::new(RefCell::new(Option::None));
(...)
*global_clone.borrow_mut() = Some(global.to_owned());