Allow types to have supertypes and add convenience methods for switched endianness
Fix bug (not sure if this is correct, but it seemed to fix my problem)