Improved typehinting in the renderer.