My Grails code has a search function that redirects to another controller action after performing a findAllBy query:

```
def results = Foo.findAllByBar(baz)
redirect(action: "result", params: [results: results])

```

findAllByBar returns an ArrayList with models, as expected, but after the redirect the receiving action gets a String array. Worse, when there is only one result it doesn't even get an array, it just gets a String.

Given that I have to iterate through the results in the receiving view, doing it on a string will meticulously print every letter individually. We can all agree that that's probably not the ideal behaviour.