allow different module names for primitive types
remove globals array

pulling it out for now. can add it back later if necessary and even then
it would probably go in Application somewhere, not Module
add check for input parameter types

make sure they match what's expected by the function
add ability to load types into a module
remove old unused debug messages