DSC
DSC copied to clipboard
Enhance copy loop functionality by allowing `reference()` usage in copy mode
PR Summary
Fixed copy loops to work with reference() function by preserving copy context during property evaluation. Modified copyIndex() and reference() to accept copy context outside Copy mode, and stored loop indices in resource tags during unrolling then restored them before evaluating properties. Tests added
PR Context
Fix #1286