shared: fix miscalculation in realloc for BuxtonArray