Core fix: delete assoc def programatically (#640).

The Core API's `Type.removeAssocDef()` method properly removes the Association Definition from memory and DB.

As a consequence the Wikidata plugin does not cause an "DB inconsistency" exception anymore.
(However the latest version of the Wikidata plugin works around that error meanwhile.)

See #640.