Fix in QOMWalker to accept DateTime as literal value

- Converts to `date('c')` format.
- Without this fix QOMWalker attempts to deal with the \DateTime object as a string.
- The fixed behaviour seems consistent with jackrabbit.

Corresponding WIP PR for api tests:

https://github.com/phpcr/phpcr-api-tests/pull/95