Added setZ for layers and containers.