fixed handling of lights in nested (potentially moving) assemblies.
fixed handling of textures located in nested assemblies.
Merge pull request #232 from nyue/master

CPack support
formatting and other cosmetic fixes.
tweaked unit tests.
Merge remote-tracking branch 'nyue/master'
Fix typo in comments about purpose of macros