Added leak detection to TextBuffer unittests.
Added iterator to TextBuffer.