Fixed an improper use of Array.splice in RenderLight. Lights should be correctly removed from the scene now