For CompositeLayer, add RefCell wrapper around container_layer