Fixed multi select not returning array

Currently, select only shows the first selected element if the multiple attribute is used.
Added code to detect a multi select and return array if need be.

Newer version of https://github.com/angular/angular.js/pull/3062