fix: indexOf polyfill for IE8

Fixes #52