Change type of entry wasn't deleting old record (issue #29)
- Fix bug in entityedit (not usinjg new type info to check existence of renamed entity)
- Fixed gaps and bug in entity edit test code