Synecdoche does mean both, doesn't it! I read that a while ago but only when I saw what you'd written did it flash back.
A related term 'metonymy' (Gr. change name), indicates the use of an attribute to describe someone or something. For instance, if one describes business men as 'suits'. This obviously doesn't work round the other way:-)