Fix path type used in DistanceMap::minpath to use edge descriptors

Also make minpath return starting vertex too