Fix failing tests in older IE related to iteration order.