fix issue where duplicated matters had same date/time for different events

This solves #48 and a related issue where attachments list wouldn't show up for a matter that was repeated.