Fix some more problems about asserts and voluntary stack traces