Bug 1063786 - Support nested symbol definitions in the SWF parser

Alternative implementation to the fix from #1700.