implement sized deallocation

Closes #13994