Adding better APIs for environ
Extended alloc_array to have customizable allocators and deallocators