Add fallback for IE8. 

With IE8 Array.indexOf is missing, but in our setup we cannot change the prototype of Array (which might be considered bad practice anyway). I don't know if this is of interest to others, but I wanted to put it out there anyway.