Make analyseModules polymorphic (fixes #11)
Fix the test suite