Convert to GSlice and check for redundant clears. (#418637)