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.
Merge pull request #348 from ucb-bar/dotlitnodename

Generate valid literal node names for the Dot backend.