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.
1.4 candidate. Easy one...
On 8 Dec 2014 19:07, "Caitlin Potter" <notifications@github.com> wrote:

> In docs/content/error/filter/notarray.ngdoc:
>
> > @@ -0,0 +1,6 @@
> > +@ngdoc error
> > +@name filter:notarray
> > +@fullName Not an array
> > +@description
> > +
> > +Expecting an array for filter.
>
> We can add more text for this :\
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/angular/angular.js/pull/10352/files#r21475796>.
>