Improved type section parser