[DependencyInjection] fix a regression introduced in #9807

Always dump the fully qualified class name, to support dumping containers in a namespace.