fix some terrible memcpy bugs that were overlooked in going back to array storage