Fix for issue #25
* Added logic to set the selected item when source is an array.