dynarr: add (slightly redundant) dynamic array