Exclude OS junk files from repo.
Fixed problems with generic types. Thanks to https://github.com/pkorzeniewski for catching it and providing the fix.