Fixes, changed how dungeon object's type is saved