The maximum runtime of template can now be limited.

For the the EvaluationContext has a new attribute ticks. This attribute will
be decremented in each call to decoratedEvaluate() and an exception thrown once
the value becomes 0. To allow unlimited runtime use a negative tick value.