Small fixes to ical_dezonify() and its helper functions