Bug fixes: Primary key involving date, hasChanges with dates + addl tests