Constantize entity and repository on load!

There is no guarantee entity and repository class have been loaded before the
the entity / repository get set. Thus we only figure out the class when configuration
get loaded (as much late as possible)