Stop using [].indexOf - ie8 doesn't have it.

@jrgm - here you go!

Use _.indexOf instead

fixes #3548