various fixes
adjust some expected test outputs
fix and enable stack frame optimization again