fixes treatment of type parameters in types
Merge pull request #23 from xeno-by/master

fixes treatment of type parameters in types