I change it to use the type directly here as indexes, are you comfortable with it?

https://github.com/mozilla-b2g/gaia/pull/16366/files#diff-1771861f93033e89a6aab9af81f0af5bR291