fix #115 

return typename if already generated which has been removed in 12841af72708ff835a8065928b1a5a982102fdd4