Allow datatypes to be deleted directly. Closes #365