fix ~ZeroSizeType rvalues

Closes #13360