Update `default` filter

Add the `boolean` argument documented in http://jinja.pocoo.org/docs/dev/templates/#default.

I wonder if `null` should be treated as undefined. (see https://github.com/mitsuhiko/jinja2/blob/master/jinja2/filters.py#L267)