Merge pull request #30 from distantcam/master

Equality checking of generics was invalid