Check if run as an integer, not as a string, is in runRange.

This is to fix issue #4114.