Updated PSGenericMethods.psm1

Added C# helper class to get around the bug where PowerShell is passing instances of PSObject in the argument list when calling $method.Invoke() (when the actual types of the arguments are generic types, such as List<T>.)