Create 'preserveGenerated' mode for cloneElements and use in copy

The copy operation should preserve the 'generated' internal property
so that source style is preserved.

Bug: 72426
Change-Id: I77e2a9936459a15f6fbb94817ffcad97ef75dcd6
Merge "Create 'preserveGenerated' mode for cloneElements and use in copy"