Validate selection/focused/anchor during initialization

Cleanup selection state on initialization - for cases where an application has selection/focused/anchor on items which do not actually exist in foreach.

Added an extra commit for IE8 compatibility, where ko.utils.arrayForEach works but observableArray.forEach does not