fix: handle tuples in deepcopy_minimal to prevent mutation of user data
#1213
+44
−4
deepcopy_minimal to prevent mutation of user data
#1213