We now try to read the types directly from the bean definition arguments first, before attempting to resolve the actual bean instance. If resolving the bean fails, we currently only log an info message. This arrangement needs to be revisited. See: #2593