BUG: Fixes the rename argument to namedtuple.

Cleans up memory allocations made not using PyNew and PyDel.
Explicitly NULL the reprformat on the freshly allocated  newtype so that
if we exit early, the destructor doesn't blow up.