Make `RegExp.prototype.flags` more spec-compliant

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
Merge pull request #310 from mathiasbynens/flags-spec

Make `RegExp.prototype.flags` more spec-compliant