fix regression; cleanups
fix some compilation warnings
cheap fix for crash in RepeatList::utick2tick on Windows