Create an internal `defineGetter` function.
Move RegExp#flags shim below Object and Array shims.