Add a `Sequence` iterator for generating sequential keypairs; fix tests