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.
Can you create a `pendingUntilFixed` test case which reproduces the problem and a new ticket for it?