start decoding entities, add some asserts to check assumptions
update Dwarf Fortress to v0.40.10