Taml - JSON fix

This PR has to commits:

One for escaping the jsonText buffer with NULL. - Honestly I have no idea how the JSON reader has ever worked without this change, when I run it the last character is just some random residual character.

Second is for fixing the getTamlObjectName method, which currently looks for a TamlRefId instead of the actual name. - This seems like a simple copy-paste error.