Keep type() instead of isinstance() for some cases
Keep type() instead of isinstance() for some cases

Since isinstance() deals with inheritance and `datetime.datetime` inherits
from `datetime.date` we have no way to distinguish the object type.

irgangla/icalevents