Core: fix label recalculation (#339).

The CompositeValue's setXX() methods trigger a label recalculation.

See ticket 339.