Fix pmatch bug.

Fix a bug which resulted in broken code in case of patterns with
anonymous paths where the first anonymous thing is a vertex, not an
edge.  E.g.:

  [a -e-> <> --> x] or [a -e1-> <> -e2-> x]