Various bug fixes

* Fixed a number of parse errors eg string starting exactly on a non-adjacent page boundary
* Fixed issue where the name index could span non-adjacent pages, only encountered this in cases where the page size was 512 as opposed to the standard 4k
* Fixed issue with function length in very rare cases
* The type stream can apparently contain null leaf types that can be safely skipped over