FMaterialUtilities::OptimizeSampleArray

Tries to optimize the sample array (will set to const value if all samples are equal)