Copy "exclude_from_rendering"-flag in Layer::clone() and
Layer::simple_clone()