Fix PHP-687: Avoid premature casting during MongoDate arithmetic

https://jira.mongodb.org/browse/PHP-687