Update externs for String.prototype.localeCompare

According to the ECMAScript specification this function should
be able to deal with two additional parameters ('locales' and
'options').
Fix checking for variable declarations shadowing parameters.
Reorganize imports in VariableReferenceCheck.java
Simplify determining a guaranteed type.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=75980745
Automated g4 rollback of changelist 75935491.

*** Reason for rollback ***

Performance regressions

*** Original change description ***

Fix in object pattern parsing to allow anything that is valid as the left side of an assignment, on the right side of a colon in an object pattern.

***
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76072041
Remove references to raw Promises in default externs.

In some cases the existing externs looked different from
the linked specs, so I changed them to match.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76085069
Adds $animateProvider to the AngularJS 1.2 and 1.3 externs.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76106344
[NEW TYPE INFERENCE] Separate loose and non-loose top functions.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76106648
Merge pull request #632 from Dominator008/master

Fix checking for variable declarations shadowing parameters.
Fix in object pattern parsing to allow anything that is valid as the left side of an assignment, on the right side of a colon in an object pattern.

This is a roll-forward, but with some refactoring so that speculative parsing will fail faster, which prevents parsing of large object literals from taking a ridiculously long time.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76126495
Allow transpilation for --language_out=ES5 as well as ES3

Fixes #550
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76128389
Remove Event.prototype.state

I couldn't find this in any spec, and this definition conflicts
with that of subtype PopStateEvent.prototype.state
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76166119
Update the type of the "Object" function to indicate that it returns an Object if not called as a constructor.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76177522
Add a diagnostic group for conformance tests so they can be promoted to error
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76196359
A few small cleanups related to modules:

- Make sure errors are reported, not just created.
- Fix some broken targets due to missing BUILD deps
- Add more parser tests, and simplify the code printer tests
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76206119
Add a few tests of DeclaredGlobalExternsOnWindow.

While we're at it, improve the printing of jsdocinfo.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76211466
Invalid conformance specifications should be errors.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76216354
[NEW TYPE INFERENCE] Smarter inference of @const RHS
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76275445
[NEW TYPE INFERENCE] Make crawling of NominalTypes more consistent

Fixes #635
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76279949
A few more miscellaneous cleanups
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76294809