Add support arrays in params

Right now it prints
```
1
0
```
But it should print
```
1
1
```
right?