Fixed representation of nested classes within generic types