minor cleanups to IterableUtils::Compare() function