--[[
Fixed-capacity freelist for Terra.
Written by Cosmin Apreutesei. Public Domain.
Provides O(1) dynamic allocation and freeing for a fixed number of
fixed-size elements. This is actually a mempool but with a freelist API.
]]
See the source code for more info.