[Diagnostics/Debug] Fixed Trace to be inline with the changes in core/collections.
[Core/Collections] Loosened the visibility of extractItems() to make it easier to override replace().
[Diagnostics/Debug] Refactoring Trace to be fully compliant with core/collections.