Fix bug in output ref renaming
Make failing test output readable
Fix broken test: \w is not equivalent to \\w

...in a JavaScript string.
Merge pull request #273 from dimagi/147618-output-ref-update-bug

Fix bug in output ref renaming