Fix "Max stack length exceeded" bug after tree map render.
Fix silly bug in value input.

I was operating on display in the $watch, not scope.display, so I was always using the previous value, not the current value.