[DependencyInjection] Fixed #9020 - Added support for collections in service#parameters

Disclaimer: I made sure that tests are passing, but I am not sure how to test if it really works. By looking at the code, it should.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9020
| License       | MIT
| Doc PR        | needed