More tweaks and tests for NewIter.

Also fixes result.Cursor.NS handling, as mentioned by Jeff Yemin.