Better handling of repeat -> $x { ... } code-gen.

Still need a way to let Nil be specified, but at least this doesn't
leave it unknown exactly what will be passed in.