Remove debugging allocator.

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

Changes the interface significantly.
Merge branch 'master' into t

Conflicts:
	src/giffunc.c
	src/xform.c