in rebuildPath, pop Nodes out of internalNodes.

Predecessor maps passed to rebuildPath sometimes have nodes of the original
graph and sometimes have internalNodes used by the search algorithm.  The path
result returned to the caller of the search function though, should include
only Nodes of the original graph.
Merge branch 'bug-fix'.  in rebuildPath, pop Nodes out of internalNodes.