Modified EndlessLastEnumerable so it could be initialized with any Enumerable, not only an Array.