update! It is the $this pointer that got screwed up, not the $this->template pointer. my bad.
I am able to kind of fix myself and limp forward by saving $this BEFORE the ob_* sequence, and using the saved version afterwards.
So I am good in terms of moving forward on my work, but if anyone has thoughts on why the code above would destroy $this, that would be good to know!
thanks