Fix issue where some fieldtypes might have orphaned data in the DB when removing a field from a template.