ENH: allow auto vectorization of integer loops

Same as gh-4561 for more integer operations.
The two loops look identical. What am I missing?