Acording to VS perf anylser, this reduces node.js update() from

4.6% exclusive CPU to 1.9% exclusive CPU.

Commenting out the getUid() saved another 0.5%.

This change moves transition only code into a seperate function,
and only calls it if transitions are have been used on this node.
This saves several assignments and construction of inline {} object.