Fix bug where type parameter is not found since it is defined in some superclass
Functor instances generation and Compose now use both toString for memberDefs