Tweaked the ValueTree listener behaviour to avoid duplicate change callbacks.