Ok, I see this is a SWIG bug: http://sourceforge.net/p/swig/bugs/1149/

But `%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) IntPair;` seems to work, better than having the magic number.