In addition, fix applied to OptimizeEE:

We check the count of sub-expressions in a expression tree for a xsl-template or function. If the count is over some threshold we interpret the parent expression and recursively check and compile sub-expressions into bytecode that is below the threshold.