ProxyFactory: Catch exception if type hint of entity method parameter is invalid

ProxyFactory: Catch exception if a type hint of an entity's method parameter is invalid and forward the exception with a better readable and more helpful message.