Added generics to LazySequence and friends.