fix(filter): throw error if not used with an array

Throw error if filter is not used with an array.

Closes #9992

BREAKING CHANGE: Previously, the filter was not applied if used with a non array.
Now, it throws an error.
Sorry, my bad. But the test will fail as we would be using filter with the string 'binding value'. We could replace `filter` by `lowercase` and this will prove that the binding works the same way.