I can't seem to figure out what has replaced this- the context object inside a CellTemplate for the pivot table used to be a TemplateContext object (var something = context as TemplateContext). This class is no longer included.
What is it now? I cannot find this change documented in the breaking changes section.