Correct connection names for JSON output.
Working support for multiple namespace implementations.

Also, add basic support for math nodes.