Moved convenience methods for collections from FiniteCyclicIterableTest to Util.