Pushing onto two different arrays causes many reallocations
This fixes an issue raised on discord:
https://discord.com/channels/905194001349627914/905834552965103638/949343674272219226
On Solana, contract storage in storage in account data which is a
continious piece of memory. In order to support growable objects like
dynamic arrays, we have a mini heap implementation. This fixes a problem
in the realloc implementation.
Signed-off-by: Sean Young <sean@mess.org>