Avoid unnecessary dyn-array growing

Signed-off-by: Kohei Takahashi <flast@flast.jp>