Allocator bugfixes + unit test.
Fix STLArray under ARC.