Add uniquify_dates option to return unique dates.

Adds option to return unique dates - useful for range mode so that if start and end date the same then only one date returned (more natural looking). Uses array.filter so won't work for IE8.