Fixed access error in PHP 5.3.X (pt 2)
 Tested some edge-cases in Repository and deprecated Repository::getRepository($class)