Added datatime cast to date objects in CarePlan hierachy.

@twymer @msienkiewicz `datetime` is also instance of `date`:
https://github.com/dimagi/commcare-hq/pull/4452

```
>>> from datetime import datetime, date
>>> dt = datetime.now()
>>> isinstance(dt, date)
True
```