IoC::registered check fixed

Returns true if the instance was registered with IoC::instance