fix(common): implementing IE-safe array search

Fixes #625