Fix PHP-687: Avoid premature casting during MongoDate arithmetic
Merge branch 'pull-request/299'

* pull-request/299:
  Fix PHP-687: Avoid premature casting during MongoDate arithmetic