Convert toplevel functions and variables into a <modulename>TopLevel static class.
Merge pull request #8 from nadako/master

Support module toplevel functions and vars.