Finished patching C++ code for PyPy Numpy C API

This builds with CPython 2.7.3 and with PyPy from pypy-pyarray.