patches for cicle edit and measuring tool 

small changes for errors previously reported as well as making them work with version 0.6.4 of Leaflet