ENH: Get equality functions working again, but keep it in the SWIG file rather the polluting the C++.