Fixed error when parsing slashes in RegExp literals.

Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`.

Fixes issue #318.
Verified