ENH: replace a few small allocations with PyObject_Malloc

It uses a faster small object allocator for sizes smaller than 512 bytes
(256 in python2). This improves nditer construction and scalar
operations by about 10%.