Fixing a few warnings in the modules.

Refs #1777.
Merge pull request #2742 from jwpeterson/fixing_warnings

Fixing a few warnings in the modules.
Merge commit 'a5785cfefecbaa29f8c312ce0ff0749282d82c23'