Wrap CompositorLayer fields with RefCell