fix(ie8): fix calls to indexOf and filter

Closes #1556