Factor out common use of int range and long range into CollectionUtils.
Added async tests.