Reworked the MTAB flags to force Extended mode when any extended flag is set and to then handle any references properly