Integrated Stream.measureTemplate() into OffsetTree.