Assert a pattern is a string.

It makes debugging easier, as we don't go into other functions before raising an error (in `RegExpParser.prototype.advance`, actually)