Fixing unused variable warnings

* Fixing unused variable warning. Generated code should compile
  with -Wall -Werror flags

* Fixing forgotten __Module -> SwigModule renaming
Fixed errors from previous commit.

Also in previous commit also fixed warning with unsigned vs signed
comparison
Merge pull request #160 from v-for-vandal/issue_157

Fixing unused variable warnings