Fix IE8 compatibility of util.strict_oneof

Do not use indexOf for argument comparisons, because it is not
supported in IE<9. Instead uses simple list iteration.

Need to test this in IE8 to be sure.