Already done., it's about time that some decent attempts were made (and the results made available) to address the fact that the behaviour of Type AC RCDs with non-sinusoidal currents is "undefined and mostly unknown".
Plenty here: https://scholar.google.com/scholar?hl=en&as_sdt=0,5&q=residual+current+devices+AC+A&btnG=