Updates SWIG to 3.0.2 and fixes issue in algorithms interface file to wo...

...rk with new SWIG.

Should help with #1264