fix MeasuredMaterial and Spectrum.samples