check for out-of-range values in iround(). closes #1142