Fix for bug #185

Because this patch affects the way that the `date_to` derived field is calculated for every single child-holdind CIDER object, after applying this patch you must execute a full run of `script/repair_derived_fields.pl`, aimed at the appropriate database instance. You should only need to do that once.