Fixed JSClassRef declaration not using the static one

The class descriptor is not assigned to the static variable but to a local one, which makes the global variable unused.
Merge branch 'patch-1' of git://github.com/zittix/swig into zittix-patch-1
Merge branch 'zittix-patch-1'