updated constructors for timeline and graph2d (container, items, groups, options) with backwards compatibility