mem/arena: a basic arena allocator from m4vgalib.

This seemed like it had the potential to be generally useful, perhaps
with some future refactoring and policy support, so I've factored it
out here.

It's still very specific to m4vgalib's needs.  I will loosen it later.