GROOVY-6575: Type checker fails to check int[] arr = o