Method `DocumentBuilder.Build(IEnumerable<IIdentifiable> entities)`: When `entities` is an Array (and thus not a generic type) .GenericTypeArguments[0] crashes with IndexOutOfRangeException. Does anything speak against the following simple fix? ```csharp var entitiesType = entities.GetType(); var entityType = entitiesType.IsArray ? entitiesType.GetElementType() : entitiesType.GenericTypeArguments[0]; ```