Start porting the core of MapIter.

It was a blob of PIR. This does it mostly with QAST trees. Not yet
complete; missing control exception handling and sink stuff. Works for
the basic cases, though.