AUI-1177 Fixing issue when selectDates is called with a single date

Casting the param to an array before calling 'map' on it.