Internal compiler error with arithmetic or arrays?