Syntax
Get/set a tensor extra variable.
a - extra value
tp - tensor pointer
i - Optional extra index (if not provided, then i is taken to equal 1)