Implements RegExp.prototype.toString. Closes #295.