Fixing unused variable warnings

Fixing https://github.com/swig/swig/issues/157
* Fixing unused variable warning. Generated code should compile
  with -Wall -Werror flags

* Fixing forgotten __Module -> SwigModule renaming

* Fixing warning about unsigned vs signed
comparison