Fixes #7214.

Dismantling a window should now return an appropriate number of sheets for its type.