get array length, supply default array for C# array types