Fix date range popup for cycles/adhoc

Its RC6 and we only just caught this bug!!! It was not
possible to delete or edit date ranges of type 'Cycle' due
to a cockup with the type() values.

Thanks to Martin Wifling for finding this one!
Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah
JsonRideFile: add support to the references for forward compatibility
Fix Editor find results sorting

.. it was sorting as a string not a number
Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah
Deprecate overwrite existing files on import

.. just for release 3.0 until the major bugs are fixed.

Fixes #620
Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah