compiler: avoid crashing on invalid non-integer array length