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
nit: The form "issue N" elsewhere often refers to Google code, so let's just link to https://github.com/google/closure-compiler/issues/237 directly.