Fix r_modular externalptr error
Added a ppa with swig 2.0.7 to travis conf
Merge pull request #2479 from matthuska/r-externalptr-error

Fix r_modular externalptr error