Add ObjectRegistry::has().

It allows checking if a particular object is loaded.
ObjectRegistry::loaded() now only returns lists of all loaded objects.