Fix compilation: polymorphic values to be injected is not so polymorphic now

It's 1st solution which fixes compilation I tried. Probably it is not perfect one.

Here we are, @Drup.