Implement Sequence::flatten()