Support IEnumerable<T> instead of IList.