Swig adapter fixed for latest version (Swig v1.0.0).

The init() method of Swig is not supported anymore with the latest
version (v.1.0.0), which caused an error when templates were rendered.
setDefaults() seams to be the alternative to the issue.