avoid code duplication by generating GetSlice/SetSlice utility code from a common template
avoid code duplication by generating List/Tuple_GetSlice utility code from a common template