Optimization to speed up TextShape.update.
Merge pull request #45 from mootoh/optimize/textshape-option-expansion

Optimization to speed up TextShape.update.