Add row value constructor to codegen output

Supersedes #614
review by @szeiger @rfranco