Generate valid literal node names for the Dot backend.

If we're explicitly outputting literal nodes, make sure they have a legitimate name and not just a number (otherwise, the dot file processor complains about an illegal number when it parses the name).