Minor memory-leak fixes.
Added TIFF support to plugin, changed texture loading to be lazy, fixed material creation to correctly use instanced materials, added checks for muted lights, tweaked some default values.