Added support for directly setting the current index of an infinite collection.