streaming: add a function to expand Copy elements into full writes

Signed-off-by: David Scott <dave.scott@eu.citrix.com>