use ClassUtils::getClass when refreshing a document to not fail on proxies

we have one place in the UoW where we should not have used a get_class but ClassUtils::getClass to not stumble over proxies.

i also updated the get_class calls in exceptions to ClassUtils::getClass to not confuse users with proxy class names.