Fix issue when scanning AddinFlagsAttribute

.NET is more strict than Mono when resolving a type constructor.
Mono can resolve a constructor with an enum parameter by providing
an integer as parameter value. .NET fails in that case.