glMaterial: Before converting to Array, check if conversion is possible.
Fix commit f212362a0540165cb7b18c548b818c318d6dcbaf
Fix more examples
Fix conversion to GLboolean, we need to convert TO GLboolean, not FROM it.