With this change, it is possible to use dynarray from non-internal tests.
This is intended as a type-safe alternative to obstacks and hand-written realloc constructs. The implementation avoids writing function pointers to the heap.