Fix #1011: Correctly print -0.0 when linking in JS.
Merge pull request #1022 from gzm0/fix-tree-printer-zero

Fix #1011: Correctly print -0.0 when linking in JS.