Fixes #6,#64,#77 Ensures RegExp objects are instances of sandbox.RegExp.