Defensively check for prototype in calledWithNew

Fixes #395
Feature detect CustomEvent and ProgressEvent

Fixes #396
1.8.2
Fix comparison for regexp deepEqual
Add deepEqual tests for regexp flags
Merge pull request #403 from lightcap/fix-regexp-deep-equals

Fix comparison for regexp deepEqual