Minor fixes to material slot checks for duplicate values. Added extra
check so that only selected slots are processed. Also some further
progress to the method of determining mesh properties based on texture
slot settings.