Refer to the global RegExp object in a way that makes Closure happy

Fixes #106.

Tests all pass but not sure if it's gravy with advanced compilation.