Check that a module is typed to non-nil

When one calls module:type() with no arguments, all the parameters of the module are converted to strings.