Add where filter to filter arrays of objects

Along with #1738, fixes #1735.

## Usage:

Output all pages with the layout staff as JSON:

```
{{ site.pages | where:"layout","staff" | jsonify }}
```