Update BrowserFlags to include Firefox

- DRYs up the browser checking code
- Adds in Firefox as another flag
- Makes it possible to do checks like `if (env.ieVersion)` to target all
IE versions
Update PrettyPrinter to better check for an Object

Includes test case to fix FF as suggested by @ondras
Fixes #409