Simplification and bug fixes in some cgen/seq cases

The second commit is the interesting one that will benefit by a second set of eyes.