TCHECK-49: rewrite gen/sequence

The gen/sequence function was unnecessarily generic in a way that caused
poor stack performance for generating large sequential types.

Rewrite it as a function called gen-seq->seq-gen, update usages, add a
regression test.

Signed-off-by: Reid Draper <reiddraper@gmail.com>