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