fixed ancient bug in compareDate (actual comparison was object < object and not a proper compare() call - if it ever worked before, it was pure luck, but I found a case that finally failed properly).