Retain attachments in AnnotedValue.DuplicateForUpdate().
Added numeric date functions. Renamed DATE_PART() to DATE_PART_STR().