fix buggy cardtype handling
Ticket
+status
+priority
+tags
+commit
+issues
changing a non-cardtype to a cardtype sometimes results in broken linkage with cardtype. this also happened to me when renaming a cardtype card.
shows up as error in *type card search and other uses as "No class name for cardtype name ..."
breaks edit, delete.