Removed the length and distance functions from functions-geometry.cfg, and replaced them with a version of length that handles all the 'function overloading' cases distance existed as a convenience for.