Fix circular constraints in text

Only update text sizes when they have changed. Move workaround for
measuring text with hidden parents to the sprite.
[Delivers #84528284]