Remove debugging allocator.

Valgrind is clearly the way to do this now.
Avoid integer overflows in Gif_NewArray/Gif_ReArray.

Changes the interface significantly.