Resolve a memory leak

There were a couple of things causing us to hang onto references to the full dataset when rendering UTFGrids. For some of our tiles, that's a pretty large amount of data.

The change looks huge because some re-scoping involved more indentation for a large block of code.

/cc @hampelm