Fix whitespace errors.
Move helper function into anonymous namespace.
Make functions use ISerializable interface.
Whitespace changes.
Add id and class id to Function JSON output.
Expand the JSON export functionality of TypedValue.
Export classes.
Move unit debug output to json file.