Optimize the mangling of specialized generic functions. (#2845)
Don't include all the dependent types, which are not really needed to get unique symbol names.
This reduces the symbol length (and therefore the binary size) significantly.
Thanks, rjmccall, for your help!