Bugfixes in handling TOH and TOT structures

- Worked around a bug when adding new strref entries in TOH
- Added support for empty TOT files
- Added support for zero-sized Unknown datatype
  (required for empty TOT file support)