Remove allocations during render.

This removes all cartesian and matrix allocations during rendering of a simple scene (the default viewer). Remove all allocations for mouse interaction too, though some are still made for loading new tiles.

For #1344 and #1351.