adjust application of event limits for repack

Make sure Repack and RepackMerge use the event limits correctly. For the most part that means use the event limits in RepackMerge, it was missing there.
Merge pull request #4081 from hufnagel/repack-thresholds

adjust application of event limits for repack