fix slow flow performance when a brick splits large objects into many small packets
the packets where deepcopied two times and especially with large lists as payload or in the buffer, we saw terrible performance (e.g. 100ms per packet generated). So we do shallow copies now, but make sure not to modify the original payload or buffer, but instead create new objects as we need them.