Fixes Issue 8920 - iota should work with types smaller than int.