Fix bailout iterator settled on non-top frames
Add stack trace warning, more codegen fixes