Remove duplicate function AMCFix (and rename AMCHeaderFix to AMCFix) so that we don't have the burden of maintaining two copies of this function.
Call the "contracted" callback before destroying the chunk, as the arena is (briefly) invalid afterwards.
Remove unused variable obj1pip -- broke the compilation in gcc.
Remove unused variable p1 (broke the build on gcc).