GROOVY-6480, GROOVY-6481: Fix IntRange in @CompileStatic mode to always use the IntRange class