Fixes Issue 8920 - iota should work with types smaller than int.
Merge pull request #1107 from AndrejMitrovic/Fix8920

Issue 8920 - iota should work with types smaller than int