fix(select): make ngOptions support selectAs and trackBy together

This commit implements a function, "getSelected()", that takes the
selectAs expression into account when determining if a particular
option is selected or not. Previously, the selectAs part of the
ngOptions comprehension expression was being ignored.

Fixes #6564
The element value is always either the index (for arrays) or key (for objects), even though the model can be different.