Make benchmark for Util.isDistinct and Util.firstDuplicate less random.
Clean up: Convert some arrays to lists.