Fixed warnings in types/Generics