iteratelist function

Create an iteration list from a R object