Allow entity() and repository() to take in class name in String

`[Class,String]` IIRC ;)