modifying iterate and iterateInner to allow for iterations of durations that are not 1 period long

To enable iteration for things like 20 minutes and 2 hours

I have a need for this in what I'm currently using Twix.js for.  Anyone else?  By the way, awesome library.

Also, I probably could write a few more tests for this.  Let me know what you think.

Thanks!