re-enable some tests
fix a couple of errors and leaks in compiler