Update Material.set_param()--add static assert