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
It should be ignored in non-extern files.