Update GenericMethods.ps1

Revised test code to test nullable types.