fix issue with Lists, and add IsTexture to Material class (non-texture materials have a null texture)