the bug was in SWIG pre 2.0.8. Update travis to use ubuntu raring, which has this.