port copy layer to volumes::clone_layer. references #29