bisected swig 3.0.4..3.0.5 and reported my findings to swig upstream: https://github.com/swig/swig/issues/344