More operations

* date field extraction
* array length
* `case when`/`$cond`

I think this wraps up the low-hanging-fruit between Postgres and Mongo for issue #63.
May be tricky to define this since I can't think of any functions which work on both date time *and* interval.