Add ObjectRegistry::has().

It allows checking if a particular object is loaded.
ObjectRegistry::loaded() now only returns lists of all loaded objects.
Add ObjectRegistry::get() and alternative to magic ObjectRegistry::__get().
Merge pull request #5271 from ADmad/3.0-object-registry

3.0 object registry