I made a few addition to my Arrays and added this code in the codegenerator and it works just fine now :)
Arrays arr = (Arrays)value;
deliveredType = arr.array.GetType();
Type myType = arr.array.GetType();
Type[] types = new Type[arr.dimensions.Length];
for (int i = 0; i < arr.dimensions.Length; i++)
{
types[i] = arr.type;
il.Emit(OpCodes.Ldc_I4, arr.dimensions[i]);
}
ConstructorInfo constructorInfoObj = myType.GetConstructor(types);
il.Emit(OpCodes.Newobj, constructorInfoObj);