Detect any illegal graph node notation.

Addresses #456 in particular: fail foo:x[T-n] (should be foo[T-n]:x).
Merge pull request #661 from hjoliver/456.bad-graph-notation

Detect any illegal graph node notation.