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

Fixes #326.
Merge pull request #329 from johnhaddon/lightNames

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