Reduce scaling issues with `deepcopy`'ing.

Transform `dict`, `list`, `set` into it's immutable partner which is
lazy loaded. So, if no attribute access is being performed, the
built-ins are not converted and cached into it's immutable version.

Fixes #10733.