fixes for array deps

turns out, my initial attempt at array-of-dependencies had a few problems.

1) if the dependency has to be resolved, things broke because the BlockInjection does not know its parent
2) if the dependencies in the array all have the same service_name, the resolver got confused

This commit fixes both issues, and tests both failures.