Replace vector/SmallVector with C array for parameter lists.

This has several advantages:
- the code is shorter
- no need to specify number of elements
- only ArrayRef object is created