feat(filter): allow filtering of an object

Allow ng.filter to filter an object as well as an array. Before, an
object would need to be converted into an array before filtering.

Closes #2694.
All occurrences of `array` should be replaced with `collection`.
It is also not clear if you are matching against the keys or the values in case `collection` is an object.