sys-dict: Use dict_copy_with_ref() instead of dict_copy()