Set the name attribute for lights properly in the Render node.

Fixes #326.