Remove use of `indexOf()` when adding locale data

`Array.prototype.indexOf()` is an ES5 method we were using when it wasn't necessary. This remove its usage, and improves the error handling when adding locale data and resolve locales.

Fixes #76
So I can't use HOP, I could use it from `Object.prototype`, but I felt this _read_ better.