Ensure that generated addon's are in strict mode.

Closes #2149