Related change in Carousel class so it also supports <object> as a dynamic object