Fixing a few warnings in the modules.

Refs #1777.