Fix the generation of foreign modules (which are not a functor)
Merge pull request #293 from samoht/modules

Fix the generation of foreign modules (which are not a functor)