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.
I think you should add a proper test for what the data should look like --- just making assertions about the length isn't really that useful