[Console] added type hinting for array to setAliases method

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

This patch would improve feedback when passing an invalid alias to setAliases method:

e.g.

`Argument 1 passed to Symfony\Component\Console\Command\Command::setAliases() must be of the type array, string given,` [...]

instead of 
 
`Invalid argument supplied for foreach()`
@stloyd There are plenty of tests which won't pass anymore if an `\InvalidArgumentException` is thrown. I've replaced it with a reassignment of the `aliases` argument to obtain an `array` as suggested by @pborreli (see https://github.com/symfony/symfony/pull/11874/files#diff-8e80595663798837db1b033187835535R548).