Typedefs placed inside a function declaration cause the engine to crash.
Function local type definitions have now been disallowed in CVS. This fixes this bug.
Function local type definitions have been reenabled and the actual cause of the bug has been fixed.