Fixing farthest on path bug.

The target code is terrible, and uses hardcoded strings to compare to types. Fixes #94.