Revert "Fixed #1300 clang warning in SWIG_Python_ConvertPtrAndOwn."

This reverts commit 8e340c158c41ee053fd2be2f30b47e9a060515c9.
MOdified only no-cast-rank version of SWIG_AddCast.