Further filesystem and partition table fixes

* Further fixes from my audit of HFS+ and ext2/3/4.
* Add support for some further ext4 features.
* Added more checks to IBM MBR detection.
* Add in test cases for some of the above changes.