Update stack allocator unit tests and refactored free list template for indexSize.