Fixed some things, but the bug exhibited by stack-frame-test.TAS still remains