fix(dirty_checking_change_detector): correctly truncate collection change record

Missing tests -- not really sure how to test this. Suggestions welcome.