Substantially improve compatibility of describeTypeJSON implementation

Enough so that a beefed-up version of our previously-failing avm2 tracetest now passes with bells and whistles.
Merge pull request #1759 from tschneidereit/describetype

Substantially improve compatibility of describeTypeJSON implementation