Factor out repeated Ref key string generation code.

In src/core/obj.js, we convert a Ref to a string to index into a table like
this: 'R1.0'.  This conversion is repeated numerous times.

This patch factors out the conversion into a new function.
Ref.prototype.toString().
Merge pull request #4973 from nnethercote/better-ref-keys

Factor out repeated Ref key string generation code.
Merge pull request #4979 from pramodhkp/svg-v3

SVG Viewer Example demo
Misc UI improvements for the SVG Viewer
Fixes SVG transforms on restore
Merge pull request #4981 from yurydelendik/svg1

Misc SVG Viewer example fixes
Optimization of save/restore usage