There is a deeper problem here with DNA_struct_elem_find and Lamp/Light name aliasing, to be fixed separately.