Treat FORTRAN modules as namespaces

Currently FORTRAN modules are treated as classes. However, they are more equivalent to C++ namespaces and this creates confusion with object-oriented features introduced in F2003.