Allow changing of entry type when copying and editting an entry.

closes gh-367
closes gh-370
closes gh-371