Add is_function_level trait to RuntimeError so that it is correctly restored when rewinding a FunctionEnd event.