Equality check of generics was invalid code.
Merge pull request #30 from distantcam/master

Equality checking of generics was invalid