BUG: PyArray_LexSort allocates too much temporary memory.

PyArray_LexSort was allocating memory to hold actual PyArrayObject's
and PyArrayIterObject's, but only storing pointers to such objects
in the array.
Merge pull request #3124 from njsmith/backport-2976

BUG: PyArray_LexSort allocates too much temporary memory.