Renaming Frame.is_lambda to Frame.as_block since we use it for while
loops too.