Bug fix. Now CompositeMaterial init must specify a value for refractive index.