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

eventually the string will be cast to class in line 180, so the behaviour does not change