adds support for printing Generics