fixed and improved output related to copying of structs and arrays