Fix issue with add_array and multiply_array that could cause overflows too easily