ENH: allow auto vectorization of integer loops

Same as gh-4561 for more integer operations.
yes same reasoning as before, by using NPY_RESTRICT technically all three loops could be the same, but it wouldn't save any lines of code.