ModelBody wasn't actually getting the list of old lights due to passing by copy instead of reference. Also just tidied it a bit.
Merge pull request #2179 from fluffyfreak/BugFixes

Some minor bug fixes.