More template specialization fixes for aiMaterial.