Add a check for extern methods marked with @nosideeffects

Add a check for extern methods marked with @nosideeffects to ensure the results are used. If not, protect the call and issue a warning.

Fixes google/closure-compiler#237
So is it actually a problem to add this twice? If so, any suggestions on a good way to check first?