@Override
	public int getLength() {
		if (numElements == 0) {
			return 1; // 0-length datatype instance not supported
		}
		return numElements * getElementLength();
	}
Validate a array base datatype to ensure that it is allowed
@param baseDt intended base datatype for array (always pass in typedef's base type if applicable)
@throws IllegalArgumentException if dt is not a valid base datatype for an array
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/ArrayDataType.java