Fixes #941. However, this currently breaks the stdlib somehow with some FreeUnique on the shrinker step of the optimizer.