When deleting entity, don't allow delete of type with existing values (issue #34)