Bike speed

It turns out that pull request #1106 did not fix the reverse traversal turn cost bug completely. This pull request (which can also be cherry picked from the stable and master branches and already anticipates the changes that will be made by pull request #1266) should eliminate the vestigial issues that would sometimes still occur when users specified a custom bike speed.