Replace home-brewed arrSize with std::extent
Fix memory leak in C stack allocator

The bug caused the allocator to never deallocate any memory, instead it grew
the storage of allocated pointers, sometimes causing crashes.
Add support for alignments in stack allocator