Reduce the number of swig warnings and unresolved SWIGTYPE_p proxy classes.