Replace some NSAutoreleasePool functions with autoreleasepool blocks.