Very rough support for generics in traits
Fixed some bugs with generics in traits, including accumulating the correct imports without warnings and support for arrays of a generic type
Forgot to add a file in the last commit