Throw a RangeError for enums

Modeled on http://people.mozilla.org/~jorendorff/es6-draft.html#sec-15.5.4.26