Fix printing path.
Write correct name and value for Typedefs.
Add array toJson loop.

Does not yet convert array metadata.