Fixed doterator so list.<number> works.  Added opt and rest tests.