Add ObjectRegistry::get() and alternative to magic ObjectRegistry::__get().