Allowing to select complex node as start and end of a path (fixed #686)