Cleaned up and fixed problems with memory arena and pool allocator.