Core: update assoc index on assoc retype (#389).

Done:
    - update the association metadata index when an *association* is retyped.
Pending:
    - ... when an *association role* is retyped.
    - ... when a  *topic* is retyped.

See ticket 389.