Remove transferred nested constants on reset.

Fixes #678.