Revert "this is Jubi's undefined behavior patch plus a few new test cases of my own"

This reverts commit c6fefe0490656c0f9f64fc45d95cfc6522c19578.